package cn.whitecao.agent;

import cn.whitecao.agent.core.config.ConfigContext;
import lombok.extern.slf4j.Slf4j;

import java.io.File;
import java.lang.instrument.Instrumentation;


/**
 * @author Bashful Huang
 * @since 2020-09-10
 **/
@Slf4j
public class PreMainAgent {
    public static void premain(String agentArgs, Instrumentation inst) {
        //初始化 后面把这搞成守护线程或者写个线程hook
        AgentInitializer initializer = new AgentInitializer(inst);
        initializer.setDaemon(true);
        initializer.start();
        log.info("Chibao-Agent启动成功");
    }


}